from rest_framework import serializers
from django.contrib.auth.models import Permission, ContentType,Group


class GroupSerializer(serializers.ModelSerializer):
    '''
    权限表序列化器
    '''

    class Meta:
        model = Group
        fields = '__all__'


class PermissionTypeSerializer(serializers.ModelSerializer):
    '''
    权限序列化器
    '''

    class Meta:
        model = Permission
        fields = '__all__'
